package cn.hsw.manage.role.service;

import cn.hsw.manage.role.entity.Role;
import cn.hsw.manage.role.vo.RolePermissionVO;
import cn.hsw.manage.role.vo.RoleVO;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.Set;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 李子木
 * @since 2021-11-03 08:56:11
 */
public interface RoleService extends IService<Role> {

    Set<Long> getRoleIdSet(Long userPid);

    Set<String> getRoleCodeSet(Long userPid);

    void add(RoleVO roleVO);

    void delete(Long pid) throws Exception;

    void edit(Long pid, RoleVO roleVO);

    void authorization(RolePermissionVO rolePermissionVO);

    RolePermissionVO auth(Long rolePid);
}
